let DICTOBJECT = {
    "sys_video_expression": [
        {
            "dictLabel": "rtsp://#{[username]}:#{[password]}@#{[ip]}:#{[port]}/Streaming/Channels/#{[code]}",
            "dictValue": "rtsp://#{[username]}:#{[password]}@#{[ip]}:#{[port]}/Streaming/Channels/#{[code]}",
            "children": [],
            "dictCode": "111111111111111111",
            "parentCode": "0",
            "dictSort": 1,
            "dictLevel": "",
            "dictType": "sys_video_expression"
        },
        {
            "dictLabel": "rtsp://#{[ip]}/stream1",
            "dictValue": "rtsp://#{[ip]}/stream1",
            "children": [],
            "dictCode": "1111111111111111112",
            "parentCode": "0",
            "dictSort": 2,
            "dictLevel": "",
            "dictType": "sys_video_expression"
        }
    ],
    "sys_cameraBrand_status": [
        {
            "dictLabel": "海康威视",
            "dictValue": 0,
            "children": [],
            "dictCode": "1111111111111111113",
            "parentCode": "0",
            "dictSort": 1,
            "dictLevel": "",
            "dictType": "sys_cameraBrand_status"
        }
    ],
    "sys_VCRBrand_status": [
        {
            "dictLabel": "海康威视",
            "dictValue": 0,
            "children": [],
            "dictCode": "1111111111111111114",
            "parentCode": "0",
            "dictSort": 1,
            "dictLevel": "",
            "dictType": "sys_VCRBrand_status"
        }
    ]
}

export function returnDict(value) {
    if (value) {
        for (let key in DICTOBJECT) {
            if (key === value) {
                return DICTOBJECT[key]
            }
        }
    } else {
        return []
    }
}

// import { returnDict } from '@/utils/dict'
//  data( return {  test:returnDict('sys_video_expression')   })

